﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DoNetToolKit.Patterns.Strategy
{
    class NameSort : StrategyCompare
    {
        public int CompareTo(Object o1, Object o2)
        {
            Person p1 = (Person)o1;
            Person p2 = (Person)o2;

            return p1.Name.CompareTo(p2.Name);
        }
    }
}
